package KnowSparkSQL.DSL.DatasetMethods;

import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SparkSession;

public class DatasetDropMethods {
    public static void main(String[] args) {
        SparkSession session = SparkSession.builder().appName(DatasetSelectExprMethods.class.getName()).master("local").getOrCreate();

        Dataset<Row> dataset = session.read().json("./data/student.json");

        dataset.drop("name").show();
    }
}
